package io.renren.modules.sp.dao;

import io.renren.common.dao.BaseDao;
import io.renren.modules.sp.dto.SpTeamDTO;
import io.renren.modules.sp.entity.SpTeamEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;
import java.util.Map;

/**
* 领队
*
* @author Mark sunlightcs@gmail.com
* @since 3.0 2023-04-20
*/
@Mapper
public interface SpTeamDao extends BaseDao<SpTeamEntity> {
    Map<String,Object> queryById(@Param("id") Long id);

    IPage<SpTeamEntity> selectPageVo(Page page, @Param(Constants.WRAPPER) QueryWrapper<SpTeamDTO> wrapper);

    IPage<Map<String,Object>> pageQuery(Page page, @Param(Constants.WRAPPER)  Map<String,Object> param);

    Map<String, Object> queryTeamInfo(@Param("userId") Long id);
    Map<String, Object> queryTeamInfoByPhone(@Param("phone") String phone);

}
